<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title><?php echo $_title; ?></title>

    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="sb2/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="sb2/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="sb2/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">菜单</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <img alt="" src="img/people.png" class="img-circle" width="50" height="50">
                <span class="navbar-brand""><?php echo $_title; ?>(登录39次)</span>
            </div>
            <!-- /.navbar-header -->
            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown">
                        <i class="fa fa-envelope fa-fw"></i>消息
                    </a>
                    <!-- /.dropdown-user -->
                </li>
                
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>徐秀峰 <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="javascript:navObj.userinfo();"><i class="fa fa-user fa-fw"></i> 用户信息</a>
                        </li>
                        <li><a href="javascript:navObj.setting();"><i class="fa fa-gear fa-fw"></i> 设置</a>
                        </li>
                        <li><a href="javascript:navObj.about();"><i class="fa fa-mobile-phone fa-fw"></i> 关于</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href="<?php echo $_url; ?>out"><i class="fa fa-sign-out fa-fw"></i> 安全退出</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                
                <!-- /.dropdown -->
            </ul>

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="搜索...">
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button">
                                        <i class="fa fa-search"></i>
                                    </button>
                                </span>
                            </div>
                            <!-- /input-group -->
                        </li>
                                                <li>
                           	<a href="/?admin" ><i class="fa fa-fw fa-dashboard"></i> 首页</a>
                        </li>
                                                <li>
                           	<a href="/?usermanage" ><i class="fa fa-fw fa-dashboard"></i> 用户管理</a>
                        </li>
                                                <li>
                           	<a href="/?qxmanage" ><i class="fa fa-fw fa-dashboard"></i> 权限管理</a>
                        </li>
                                                <li>
                           	<a href="/?usersysgroup" ><i class="fa fa-fw fa-dashboard"></i> 人员系统分组</a>
                        </li>
                                                <li>
                           	<a href="/?newsadd" ><i class="fa fa-fw fa-dashboard"></i> 普通信息发布</a>
                        </li>
                                                <li>
                           	<a href="/?studentsadd" ><i class="fa fa-fw fa-dashboard"></i> 学生信息批量录入</a>
                        </li>
                                                <li>
                           	<a href="/?peixunbanadd" ><i class="fa fa-fw fa-dashboard"></i> 培训班管理</a>
                        </li>
                                                <li>
                           	<a href="/?peixunbanbaoming" ><i class="fa fa-fw fa-dashboard"></i> 培训班报名</a>
                        </li>
                                                <li>
                           	<a href="/?wBook" ><i class="fa fa-fw fa-dashboard"></i> 教职工通讯录</a>
                        </li>
                                            </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>    <!-- DataTables Responsive CSS -->
    <link href="../vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">
        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <?php echo $_ctitle; ?>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                        <script charset="utf-8" src="kindeditor/kindeditor-all.js"></script>
                    	<script>
                    		KindEditor.ready(function(K) {
                    			var editor1 = K.create('textarea[name="content1"]', {
                					resizeType : 1,
                					allowPreviewEmoticons : false,
                					allowImageUpload : false,
                					items : [
                						'source','fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                						'insertunorderedlist']
                				});
                    		});
                    	</script>
                    		标题:<input name="ntitie" id="ntitle" type="text" style="width: 300px"><br>
                    		内容:<textarea name="content1" style="height:200px;visibility:hidden;">&nbsp;</textarea>
                    		<br>
                    		<input type="button" id="submit" value="提交">
                        <hr>
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>id</th>
                                        <th>标题</th>
                                        <th>类型</th>
                                        <th>时间</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                	                                </tbody>
                            </table>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
             </div>
        </div>
        <!-- /#page-wrapper -->
        <!-- DataTables JavaScript -->
    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="js/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="sb2/vendor/metisMenu/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="sb2/dist/js/sb-admin-2.js"></script>

    <script src=js/jquery.xxfset.js></script>
    <script src=js/jquery.form.js></script>
    <script src=js/app.js></script>
<script type="text/javascript">
    var navObj={
    		setting:function(){
				//alert(1);
    		},
    		userinfo:function(){
    			//alert(2);
            },
            about:function(){
				$.xalert("版本1.0 20171009");
            }
    }
</script>
</body>

</html>    <script src="sb2/vendor/datatables/js/jquery.dataTables.js"></script>
    <script src="sb2/vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
    <script src="sb2/vendor/datatables-responsive/dataTables.responsive.js"></script>
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
            responsive: true,
            "aaSorting": [[ 1, "asc" ]]
        });
        $("#add").click(function(){
            var realname=$("#realname").val();
            var mphone=$("#mphone").val();
            var zuoji=$("#zuoji").val();
            var zhiwu=$("#zhiwu").val();
			$.xconfirm("确定添加么？",function(data){
				if(data){
					$.xloading(1);
					$.post($.gu("usermanage"),{type:'add',realname:realname,mphone:mphone,zuoji:zuoji,zhiwu:zhiwu},function(data1){
						if(data1==0){
							$.xloading(0);
							$.xalert("添加失败");
						}else{
							window.location.reload();
						}
					});
				}
			});
        });

    });
    function del(id){
		$.xconfirm("删除后无法恢复，确定要删除此条记录么？",function(data){
 			if(data){
				$.xloading(1);
				$.post($.gu("usermanage"),{type:'del',id:id},function(data1){
					if(data1==0){
						$.xloading(0);
						$.xalert("删除失败");
					}else{
						window.location.reload();
					}
				}); 
			} 
		});
    }
    
    </script>